; NWMEMBER.DAT Maintain Family Member Info and Manage MEET FAMILY PAGE
;xxxxxxxxxxxxxxxx ADD A NEW FAMILY MEMBER xxxxxxxxxxxxxxxxxxxxxx
[AddNewMember]
IF nMembers = 11
GOTO NoMore
ENDIF
GOSUB InitAddMem ;set prompts, clear fields
IF skipExplanations = NN
BACKSTOP
PAGE
WIZPIC wizpics\wizfm128.gif
TYPE DESCRIPTION
DESCRIPTION \nADD ANOTHER FAMILY MEMBER TO THE WEB SITE\nThis will add a page to your family Web site for a new family member that you would like to include.\n\nYou will have the option of adding a person or a pet (a different kind of family member).\n\nFor people, you will also have the option to create just one page for the person with some basic information or a mini-Web site for the person that contains multiple personal interest pages.
ENDIF
SETTEMP pageOrSite = "page"
SETTEMP nSel = add( nMembers 1 )
SETTEMP caption = "The first information you must enter for the new family member is their first name.\n\n"
ARGUMENT "There will be a momentary delay while the wizard creates a page for ",name,". Please stand by."
SET nMembers = add( nMembers 1 ) ;make perm adjustment
GOSUB BuildMemberPages
BUSY 0
[NoMore]
MESSAGEBOX "You already have included 11 family members in your site. The wizard's memory is not good enough to remember information for more than eleven members. Sorry!"
;xxxxxxxxxxxxx EDIT and REPLACE FAMILY MEMBER'S INFORMATION xxxxxxxxxx
[EditAMember]
GOSUB InitAddMem
; get member to change
SETTEMP caption = mod_caption
GOSUB PickAFamilyMember
GOSUB SetMemberTempVars ;set their values
GOSUB DeterminePersPages
IF hasMPFavs = NN && hasMPActs = NN && hasMPNews = NN && hasMPGift = NN && hasMPPho = NN
SETTEMP pageOrSite = "page"
SET eval( memMPVar ) = pageOrSite
ENDIF
SETTEMP doBuild = ""
IF arrayelement( infoRetrievedArray nSel ) = YY
GOSUB ChangeMemberInformation
ELSE
MESSAGEBOX name," is one of the family members with incomplete information. You can enter all of the information for ",name," now."
GOSUB InputMemberDetails
SETTEMP doBuild = YY
GOSUB ChangeMemberInformation
ENDIF
IF doBuild = YY
BUSY 1
ARGUMENT "The wizard is now replacing the pages in your site with updated ones containing the new information. It will take just a moment."
GOSUB BuildMemberPages
BUSY 0
SETTEMP doBuild = ""
ENDIF
;xxxxxxxxxxxxxxx Select and REPLACE MEMBER'S INFORMATION xxxxxxxxxxxxx
[ChangeMemberInformation]
SETTEMP old_type = type ; prepare to watch for a change
SETTEMP old_gender = gender
SETTEMP chg_prompt = "You can change any of the information for ",name,". Simply choose an item from this list below and you can make changes.\n\nWhen you are finished with all the changes, choose the last item (done) to save the changes."
SETTEMP don_prm = "&Done. Finished with changes."
SETTEMP don_txt = "\nChoose this item when you are finished making changes to the site information for ",name,"."
SETTEMP inpL1 = 6
BACKSTOP
IF type <> "Pet"
IF pageOrSite = "page"
SETTEMP mult_prmpt = "\n",name," does not presently have a multiple page personal site."
SETTEMP mult_prmpt2 = "add the customized personal site content to what you have already."
ELSE
SETTEMP mult_prmpt = "\n",name," presently has a multiple page, customized personal site."
SETTEMP mult_prmpt2 = "make changes to the information there already or to add more."
ENDIF
SETTEMP mult_prmpt = mult_prmpt,"\n\nChoose this item if you would like to ",mult_prmpt2
PAGE
WIZPIC wizpics\wizchoz3.gif
TYPE RADIOBUTTONSWITHTEXT
NAME inpL1
DESCRIPTION_RE chg_prompt
ARGUMENT "Personal &Information"@1@"\nUse this item to change the person's information that was tailored for them at the time it was entered."
ARGUMENT "&Custom Personal Pages"@2@mult_prmpt
ARGUMENT "Phot&o. Change the person's photo"@3@"\nUse this item to choose a different photograph for ",name," to use in the Web site.\n\nThe wizard will automatically change all occurrences of the photo throughout the Web site."
ARGUMENT "&Style. Change style for page"@4@"\nChoose this item if you want to change the styling for the personal information page."
ARGUMENT "&Basic Info. Name, gender, and type."@5@"\nChoose this item to change the person's name or gender, if you made a mistake when entering them originally."
ARGUMENT don_prm@6@don_txt
ELSE
PAGE
WIZPIC wizpics\wizchoz3.gif
TYPE RADIOBUTTONSWITHTEXT
NAME inpL1
DESCRIPTION_RE chg_prompt
ARGUMENT "&Information about ",name@7@"\nChoose this to change the information about your pet."
ARGUMENT "Phot&o. Change the pet's photo."@3@"\nUse this item to choose a different photograph of your pet."
ARGUMENT "&Style. Change style of pet's page."@4@"\nChoose this item if you want to change the styling for the pet's page."
ARGUMENT "N&ame and type."@5@"\nChoose this item if you want to change the pet's name, perhaps because you spelled it wrong.\n\nThe name presently reads `",name,"'.\n\nChoose this item if you mistakenly classified this family member as a pet and want to change the designation to a person.\n\nIt is possible that you made a mistake when you entered the information."
ARGUMENT don_prm@6@don_txt
ENDIF
; save old photo
SETTEMP oldPhoto = ""
COPY oldPhoto = eval( "memberPhoto",nSel )
IF inpL1 <> 6
IF inpL1 = 5
GOSUB ChangeBasicInfo
ENDIF
IF inpL1 = 7
GOSUB GetPetInfo
GOSUB GetPgStyle
SETTEMP doBuild = YY
ENDIF
IF inpL1 = 3
COPY oldPhoto = photo
; get new photo
BACKSTOP
GOSUB GetPhotoType
GOSUB GetMemberPicture
; do the replacement
COPY photo = eval( "memberPhoto",nSel )
GOSUB ReplaceMemberPhoto
ENDIF
IF inpL1 = 1
GOSUB GetInterestsEtc
SETTEMP doBuild = YY
ENDIF
IF inpL1 = 2 && type <> "Pet"
SETTEMP old_value = pageOrSite
GOSUB AskSimpleOrMP
IF pageOrSite = "MP"
GOSUB ChgMPInfo
IF old_value = "page" ;see if needs to be reversed
IF hasMPFavs = NN && hasMPActs = NN && hasMPNews = NN && hasMPGift = NN && hasMPPho = NN
SETTEMP pageOrSite = "page"
SET eval( memMPVar ) = pageOrSite
ENDIF
ENDIF
ENDIF
SETTEMP deletePages = 0
IF pageOrSite = "page"
IF old_value = "MP"
;change old pages to empty ET7
SETTEMP deletePages = 1
ENDIF
ENDIF
IF pageOrSite <> old_value
SETTEMP doBuild = YY
ENDIF
ENDIF
IF inpL1 = 4
GOSUB GetPgStyle
SETTEMP doBuild = YY
ENDIF
SETTEMP inpL1 = 6
GOTO ChangeMemberInformation ;do another change
ENDIF ; if inpL1 <> 6
;xxxxxxxxxxxxxxxxxx CHANGE BASIC INFO xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[ChangeBasicInfo]
SETTEMP inpL2 = 4
BACKSTOP
PAGE
WIZPIC wizpics\wizchoz3.gif
TYPE RADIOBUTTONSWITHTEXT
NAME inpL2
DESCRIPTION_RE chg_prompt
ARGUMENT "N&ame. Change the person's name"@1@"\nChoose this item if you want to change the person's name, perhaps to enter a nickname instead of a formal name, or vice-versa.\n\nThe name presently reads `",name,"'."
ARGUMENT "&Gender. Male or female."@2@"\nChoose this item if you inadvertently entered the wrong gender for ",name,".\n\nThe present setting is ",gender,"."
ARGUMENT "Typ&e. Adult, child, or pet."@3@"\nChoose this item to change the designation for a person, for example, from adult to child.\n\nIt is possible that you made a mistake when you entered the information.\n\nThe present setting is ",type,"."
ARGUMENT don_prm@4@don_txt
IF inpL2 <> 4
IF inpL2 = 1
BACKSTOP
SETTEMP old_name = name
SETTEMP caption = "Confirm the first name of this family member that you entered earlier. Is it spelled correctly?\n\n"
GOSUB GetMemberFirstName
IF old_name <> name
; if member does not have a photo, then must also change banner
SET arrayelement( assignStyle nSel ) = "" ;go thru once only
ENDIF
BACKSTOP
GOSUB GetPhotoType ;do they have or want photo or use std or none
GOSUB GetMemberPicture ; in MEMPIX.DAT
;xxxxxxxxxxxxxxxxxxxxxxxxxx GET FIRST NAME xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[GetMemberFirstName]
SETTEMP memNmVar = "memberName",nSel
SETTEMP name = eval( memNmVar )
PAGE
NOSPELLCHECK
NAME name
WIZPIC wizpics\wizcaptn.gif
DESCRIPTION_RE caption,"Enter the given name, or a nickname if you prefer. For example, you can enter Charles or Charlie. Be sure to use `mixed case'. Do NOT type in all upper case."
TYPE EDIT
PROMPT &Family member's first name:
IF name = ""
MESSAGEBOX "You must enter a name for this member of the family."
ARGUMENT temp,1,0
GOTO GetMemberFirstName
ENDIF
COPY eval( memNmVar ) = name
;xxxxxxxxxxxxxxxxxxxx GET TYPE: ADULT, CHILD, PET xxxxxxxxxxxxxxxxxxxx
[GetMemberType]
SETTEMP memTypVar = "memberType",nSel
SETTEMP type = eval( memTypVar )
BACKSTOP
PAGE
NAME type
WIZPIC wizpics\wizfm128.gif
DESCRIPTION_RE "Is ",name," an adult, a child, or a pet? The answer determines the type of questions that will be asked later about ",name," and choices for page style that are made available.\n\nThe main difference between designating a person adult or child is that for a child you are asked to enter their age and grade in school."
TYPE RADIOBUTTONS
ARGUMENT "&Adult (or child that's past high school)"@Adult@"wizpics\is_adult.gif"
ARGUMENT "&Child (in grade 12 or lower)"@Child@"wizpics\is_child.gif"
ARGUMENT "P&et (a non-person family member)"@Pet@"wizpics\yes_pet.gif"
SET eval( memTypVar ) = type
;xxxxxxxxxxxxxxxxxxxx GET GENDER xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[GetMemberGender]
IF type <> "Pet"
SETTEMP genderVar = "memberGender",nSel
SETTEMP gender = eval( genderVar )
BACKSTOP
PAGE
WIZPIC wizpics\wizkids.gif
TYPE RADIOBUTTONS
NAME gender
DESCRIPTION_RE "Is ",name," a male or a female? This answer determines how the page on the family Web site for ",name," is decorated."
DEFAULT male
ARGUMENT "&Male"@male@"wizpics\man.gif"
ARGUMENT "&Female"@female@"wizpics\woman.gif"
SET eval( genderVar ) = gender
ENDIF
;xxxxxxxxxxxxxx ASSIGN A DEFAULT PICTURE AND STYLING xxxxxxxxxxxxxxxxx
[SetNewMemberDefaults] ; this only runs in add mode
SETTEMP defPhotoVar = "memberPhoto",nSel
SETTEMP memPgStVar = "memberStyling",nSel
SETTEMP temp = "clip_art\people\dog"
IF type = "Adult"
IF gender = "male"
SET eval( defPhotoVar ) = modulepath( temp,"_pop.gif" )
SET eval( memPgStVar ) = "Adult Male"
ELSE
SET eval( defPhotoVar ) = modulepath( temp,"_mom.gif" )
SET eval( memPgStVar ) = "Adult Female"
ENDIF
ELSE
IF type = "Child"
IF gender = "male"
SET eval( defPhotoVar ) = modulepath( temp,"_bro.gif" )
SET eval( memPgStVar ) = "Boy"
ELSE
SET eval( defPhotoVar ) = modulepath( temp,"_sis.gif" )
SET eval( memPgStVar ) = "Girl"
ENDIF
ELSE
SET eval( defPhotoVar ) = modulepath( "wizpics\pet.gif" )
SET eval( memPgStVar ) = "Pet"
ENDIF
ENDIF
;xxxxxxxxxxxxxxxxxxxxxx ASK FOR PHOTO PREFERENCE xxxxxxxxxxxxxxxxxxxxxxx
[GetPhotoType]
SETTEMP memberHasPhotoVar = "memberHasPhoto",nSel
SETTEMP hasPhoto = eval( memberHasPhotoVar )
PAGE
WIZPIC wizpics\wizphoto.gif
DESCRIPTION_RE "How do you want to handle photographs of ",name,"? If you have them now, you can pick one to use. If you don't have one now, you can omit the photo or choose a standard (fun) picture to use until you get photos."
TYPE RADIOBUTTONSWITHTEXT
NAME hasPhoto
ARGUMENT "&Yes. I have a photo to use."@Yes@"\nChoose this to be able to select a real photograph of ",name," to include on the family Web site."
ARGUMENT "&Use Standard Photo"@Standard@"\nThis permits you to select one of many standard pictures (cartoon caricatures) to represent ",name," on the Web site until you can provide a real photograph."
ARGUMENT "&Omit. Leave off the photo of ",name@No@"\nChoose this setting to leave the photograph off of the page for ",name,".\n\nYou can always add a photo later.\n\nThe wizard will provide a graphic containing ",name,"'s name."
;xxxxxxxxxxxxxx INPUT FAMILY MEMBER DETAIL INFORMATION xxxxxxxxxxxxxxxx
[InputMemberDetails] ; prompts for:
; child grade/age; interests/fav things; pers templ; multipage info
IF type = "Child"
GOSUB GetChildInfo
ENDIF
IF type <> "Pet"
; prompt for interests and favorites etc
GOSUB GetInterestsEtc
GOSUB AskSimpleOrMP
IF pageOrSite = "MP"
GOSUB GetMPInformation
ENDIF
ELSE
; type is Pet
GOSUB GetPetInfo
ENDIF
; prompt for templ style
GOSUB GetPgStyle
; flag as having detail info input
SET arrayelement( infoRetrievedArray nSel ) = YY
;xxxxxxxxxxxxxxxxxxx END OF GET MEMBER DETAILS xxxxxxxxxxxxxxxxx
;xxxxxxxxxxxxxxxxxxxxxx GET CHILD AGE & GRADE xxxxxxxxxxxxxxxxxx
[GetChildInfo]
SETTEMP age = ""
BACKSTOP
PAGE
WIZPIC wizpics\wizkids.gif
TYPE EDIT
NAME age
DESCRIPTION_RE "How old is ",name,"? Type out the age as you want it to appear, using a number or words.\n\nFor example, you could type `Just turned 10' or `Will be 3 in September' or simply `8' or `Eight'."
PROMPT &Child's Age:
SETTEMP ageVar = "memberAge",nSel
SET eval( ageVar ) = age
SETTEMP grade = ""
BACKSTOP
PAGE
WIZPIC wizpics\wizkids.gif
TYPE EDIT
NAME grade
DESCRIPTION_RE "What grade in school is ",name," in right now? Spell out the answer like one of these examples: 'sixth', '6th', 'starts third grade in the fall' or 'starts preschool in two years'."
PROMPT &Grade in School:
SETTEMP gradeVar = "memberGrade",nSel
SET eval( gradeVar ) = grade
;xxxxxxxxxxxxxxx INPUT INTERESTS, FAVORITE THINGS, ETC. xxxxxxxxxxxxxx
[GetInterestsEtc]
SETTEMP interestsVar = "memberInterests",nSel
SETTEMP interests = eval( interestsVar )
SETTEMP favsVar = "memberFavs",nSel
SETTEMP favs = eval( favsVar )
SETTEMP hopesVar = "memberHopes",nSel
SETTEMP hopes = eval( hopesVar )
SETTEMP temp = "detCap"
SETTEMP detCap1Var = temp,"1",nSel
SETTEMP detCap1 = eval( temp2 )
SETTEMP detCap2Var = temp,"2",nSel
SETTEMP detCap2 = eval( temp2 )
SETTEMP detCap3Var = temp,"3",nSel
SETTEMP detCap3 = eval( temp2 )
;set text strings for prompts and defaults
GOSUB SetInterestPrmts
;have var to indicate if choices were made ET7
;if set, offer to edit existing or start again
BACKSTOP GetPType
PAGE
TYPE MULTIPLECOMBOS
WIZPIC wizpics\wizcaptn.gif
DESCRIPTION_RE "You can choose the information elements that appear on the personal page for ",name,". Make choices from those below to determine what questions you will be asked to fill in.\n\nThe choices you make will be the titles of the items that appear on the page for ",name,", and will also govern the questions in the prompts that follow."
COMBONAME detCap1
COMBONAME detCap2
COMBONAME detCap3
COMBOPROMPT &First item (one liner):
COMBOPROMPT &Second item (multiple lines):
COMBOPROMPT &Third item (multiple lines):
INCLUDEARGUMENTSFROM PersCap1
INCLUDEARGUMENTSFROM PersCap2
INCLUDEARGUMENTSFROM PersCap3
IF detCap1 = detCap2
MESSAGEBOX "You have item 1 and 2 set for the same values! Please change one of them so they are not the same."
UNWIND GetPType
ENDIF
SET eval( detCap1Var ) = detCap1
SET eval( detCap2Var ) = detCap2
SET eval( detCap3Var ) = detCap3
IF gender = "male"
SETTEMP gen_type = "he"
ELSE
SETTEMP gen_type = "she"
ENDIF
SETTEMP pVar1 = "detP",detCap1
SETTEMP pVar2 = "detP",detCap2
SETTEMP pVar3 = "detP",detCap3
GOSUB SetDetPrompts
SETTEMP temp = facts1,name,": In the first box, ",eval( pVar1 )," In the second box, ",eval( pVar2 )
SETTEMP temp2 = "In the third box, ",eval( pVar3 )
IF strlen( temp ) > 256 || strlen( temp2 ) > 150
SETTEMP temp = temp," ",temp2
ELSE
SETTEMP temp = temp,"\n\n",temp2
ENDIF
BACKSTOP
PAGE
WIZPIC wizpics\wizcaptn.gif
TYPE EDITAND2MULTIS
DESCRIPTION_RE temp
CAPTIONS_RE
ARGUMENT "&1. ",ppTxt1@interests
ARGUMENT "&2. ",ppTxt2@favs
ARGUMENT "&3. ",ppTxt3@hopes
SET eval( interestsVar ) = interests
SET eval( favsVar ) = favs
SET eval( hopesVar ) = hopes
[SetDetPrompts]
SETTEMP ppVar1 = "pField",detCap1
SETTEMP ppVar2 = "pField",detCap2
SETTEMP ppVar3 = "pField",detCap3
SETTEMP ppTxt1 = eval( ppVar1 )
SETTEMP ppTxt2 = eval( ppVar2 )
SETTEMP ppTxt3 = eval( ppVar3 )
[PersCap1]
IGNORE
ARGUMENT 0@pField1@1
ARGUMENT 0@pField2@2
ARGUMENT 0@pField3@3
ARGUMENT 0@pField4@4
ARGUMENT 0@pField5@5
ARGUMENT 0@pField6@6
ARGUMENT 0@pField7@7
ARGUMENT 0@pField8@8
ARGUMENT 0@pField10@10
ARGUMENT 0@pField11@11
ARGUMENT 0@pField12@12
ARGUMENT 0@pField13@13
ARGUMENT 0@pField19@19
ARGUMENT 0@pField20@20
ARGUMENT 0@pField21@21
[PersCap2]
IGNORE
ARGUMENT 1@pField8@8
ARGUMENT 1@pField9@9
ARGUMENT 1@pField10@10
ARGUMENT 1@pField11@11
ARGUMENT 1@pField19@19
ARGUMENT 1@pField20@20
ARGUMENT 1@pField21@21
ARGUMENT 1@pField12@12
ARGUMENT 1@pField13@13
ARGUMENT 1@pField14@14
ARGUMENT 1@pField15@15
ARGUMENT 1@pField16@16
ARGUMENT 1@pField17@17
ARGUMENT 1@pField18@18
ARGUMENT 1@pField3@3
ARGUMENT 1@pField4@4
ARGUMENT 1@pField6@6
ARGUMENT 1@pField7@7
ARGUMENT 1@pField5@5
[PersCap3]
IGNORE
ARGUMENT 2@pField32@32
ARGUMENT 2@pField33@33
ARGUMENT 2@pField34@34
ARGUMENT 2@pField14@14
ARGUMENT 2@pField15@15
ARGUMENT 2@pField16@16
ARGUMENT 2@pField17@17
ARGUMENT 2@pField12@12
ARGUMENT 2@pField31@31
ARGUMENT 2@pField13@13
ARGUMENT 2@pField35@35
ARGUMENT 2@pField36@36
ARGUMENT 2@pField37@37
ARGUMENT 2@pField38@38
ARGUMENT 2@pField30@30
;xxxxxxxxxxxxxxxxx ASK IF PERSON'S PAGES ARE SIMPLE OR NOT xxxxxxxxxxxxxxx
[AskSimpleOrMP] ; get whether one page variety or website-in-a-website
SETTEMP memMPVar = "memberSimple",nSel
SETTEMP pageOrSite = eval( memMPVar )
IF pageOrSite = "MP"
SETTEMP suffix = " ",name," presently has at least some of this information."
ELSE
SETTEMP suffix = ""
ENDIF
;ET7 Non-temp cancel danger
BACKSTOP
PAGE
TYPE RADIOBUTTONS
WIZPIC wizpics\wizlayot.gif
DESCRIPTION_RE "PERSONAL SITE\n",name," may have a single page or several pages linked together within the family Web site. The multi-page section includes personal news and opinions, pastimes, interests, recommendations, and a gift wish list. You can also attach a collection of photos, either of yourself or of something you like (pictures of a collection, for example).",suffix
;xxxxxxxxxxxxxxxxxxxxxxx EDIT PERSONAL SITE CONTENT xxxxxxxxxxxxxxxxxxxxxxxxxx
[ChgMPInfo]
IF beenOnce <> 1
SETTEMP inpL2 = 1
GOSUB DeterminePersPages
ENDIF
SETTEMP cplx_prompt = "You can add new personal site information for ",name," or change any of the information already there. Simply choose an item from this list below.\n\nWhen you are finished with all the additions and changes, choose the last item (done) to save the changes."
SETTEMP he_do = "\n\n",name," already has information in this section."
SETTEMP he_dont = "\n\n",name," does not presently have information in this section."
SETTEMP ccp1 = "PERSONAL FAVORITES\nChoose this item if you want a group of pages describing some of your personal favorites, such as places to eat, places to shop, and places to vacation."
SETTEMP ccp2 = "ACTIVITIES and PASTIMES\nChoose this item for a group of pages describing your personal activities and pastimes."
SETTEMP ccp3 = "NEWS and VIEWS\nChoose this item to have a group of pages that you can use to tell a story or to express your opinion on some subject.\n\nIt's your voice on the Net!"
SETTEMP ccp4 = "MY OWN WISH LIST!\nHere's your chance to let everyone know what you would like in the way of gifts. It's better than a letter to Santa, and it's directed to those who might want to get you a gift."
SETTEMP ccp5 = "PHOTO COLLECTION\nIf you have some photos to share, here's a place to do it.\n\nThey could be photos of you, or something you did (a camping trip...), or something you have (your model cars)."
IF hasMPFavs = YY
SETTEMP ccp1 = ccp1,he_do
ELSE
SETTEMP ccp1 = ccp1,he_dont
ENDIF
IF hasMPActs = YY
SETTEMP ccp2 = ccp2,he_do
ELSE
SETTEMP ccp2 = ccp2,he_dont
ENDIF
IF hasMPNews = YY
SETTEMP ccp3 = ccp3,he_do
ELSE
SETTEMP ccp3 = ccp3,he_dont
ENDIF
IF hasMPGift = YY
SETTEMP ccp4 = ccp4,he_do
ELSE
SETTEMP ccp4 = ccp4,he_dont
ENDIF
IF hasMPPho = YY
SETTEMP ccp5 = ccp5,he_do
ELSE
SETTEMP ccp5 = ccp5,he_dont
ENDIF
BACKSTOP
PAGE
WIZPIC wizpics\wizchoz3.gif
TYPE RADIOBUTTONSWITHTEXT
NAME inpL2
DESCRIPTION_RE cplx_prompt
ARGUMENT "Personal &Favorites of ",name@1@ccp1
ARGUMENT "My &Activities and Pastimes"@2@ccp2
ARGUMENT "News and &Views"@3@ccp3
ARGUMENT "My Own &Gift `Wish-list'"@4@ccp4
ARGUMENT "My Photo &Collection"@5@ccp5
ARGUMENT "&Done with changes."@6@"DONE WITH CHANGES\nChoose this item when you are finished making changes to this information.\n\nPress the Next button to have your changes saved."
SETTEMP sectionCompleted = 0
IF inpL2 <> 6
IF inpL2 = 1
GOSUB GetFavoritesPersonalPage
IF sectionCompleted = 1
SETTEMP hasMPFavs = YY
SETTEMP doBuild = YY
ENDIF
ENDIF
IF inpL2 = 2
GOSUB GetActivitiesPersonalPage
IF sectionCompleted = 1
SETTEMP hasMPActs = YY
SETTEMP doBuild = YY
ENDIF
ENDIF
IF inpL2 = 3
GOSUB GetNewsAndViewsPersonalPage
IF sectionCompleted = 1
SETTEMP hasMPNews = YY
SETTEMP doBuild = YY
ENDIF
ENDIF
IF inpL2 = 4
GOSUB GetGiftWishListPersonalPage
IF sectionCompleted = 1
SETTEMP hasMPGift = YY
SETTEMP doBuild = YY
ENDIF
ENDIF
IF inpL2 = 5
GOSUB GetPhotoCollectionPersonalPage
IF sectionCompleted = 1
SETTEMP hasMPPho = YY
SETTEMP doBuild = YY
ENDIF
ENDIF
SETTEMP inpL2 = 6
SETTEMP beenOnce = 1
GOTO ChgMPInfo ;loop for another
ENDIF
SETTEMP beenOnce = 0
;xxxxxxxxxxxxxxxxxx PROMPT FOR "PERSONAL SITE" PAGE CONTENT xxxxxxxxxxxxxxx
[GetMPInformation]
BACKSTOP NextPersonalPage
GOSUB DeterminePersPages ;set variables to show what already exists
PAGE
WIZPIC wizpics\wizpikan.gif
TYPE CHECKBOXES
DESCRIPTION_RE name,", choose the categories that you would like to have in your personal Web site from those listed below."
ARGUMENT "Personal &Favorites"@hasMPFavs@Yes,No@
ARGUMENT "My &Activities and Pastimes"@hasMPActs@Yes,No@
ARGUMENT "News and &Views"@hasMPNews@Yes,No@
ARGUMENT "My Own &Gift `Wish-list'"@hasMPGift@Yes,No@
ARGUMENT "My Photo &Collection"@hasMPPho@Yes,No@
;they changed their mind
IF hasMPFavs = NN && hasMPActs = NN && hasMPNews = NN && hasMPGift = NN && hasMPPho = NN
SETTEMP pageOrSite = "page"
ENDIF
IF hasMPFavs = YY
SETTEMP sectionCompleted = 0
GOSUB GetFavoritesPersonalPage
IF sectionCompleted = 0
SETTEMP hasMPFavs = NN
ENDIF
ENDIF
IF hasMPActs = YY
SETTEMP sectionCompleted = 0
GOSUB GetActivitiesPersonalPage
IF sectionCompleted = 0
SETTEMP hasMPActs = NN
ENDIF
ENDIF
IF hasMPNews = YY
SETTEMP sectionCompleted = 0
GOSUB GetNewsAndViewsPersonalPage
IF sectionCompleted = 0
SETTEMP hasMPNews = NN
ENDIF
ENDIF
IF hasMPGift = YY
SETTEMP sectionCompleted = 0
GOSUB GetGiftWishListPersonalPage
IF sectionCompleted = 0
SETTEMP hasMPGift = NN
ENDIF
ENDIF
IF hasMPPho = YY
SETTEMP sectionCompleted = 0
GOSUB GetPhotoCollectionPersonalPage
IF sectionCompleted = 0
SETTEMP hasMPPho = NN
ENDIF
ENDIF
;xxxxxxxxxxxxxxxxxxxx GET PET INFO INPUT xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[GetPetInfo]
SETTEMP petDescVar = "memberPetSDesc",nSel
SETTEMP petDesc = eval( petDescVar )
SETTEMP old_pet = name
BACKSTOP
PAGE
WIZPIC wizpics\wizpet.gif
TYPE MULTIANDEDIT
NAME petname
DESCRIPTION Verify the spelling for the name of your pet and provide any other information you would like to share about your pet. If you have two or more, you can include their names and other information for them here together, or make a `family member' page for each of them.
ARGUMENT P&et's Name:@name
ARGUMENT &Information about your pet:@petDesc
IF old_pet <> name
SET eval( memNmVar) = name
ENDIF
SET eval( petDescVar ) = petDesc
;xxxxxxxxxxxxxxxxx INPUT PERSONAL FAVORITES PAGES xxxxxxxxxxxxxxxxxxxxxxx
[GetFavoritesPersonalPage]
SETTEMP favoritesVarRoot = "member",nSel
SETTEMP pageMPFavsVar = "pageMPFavs",nSel
SETTEMP temp1 = eval( pageMPFavsVar )
SETTEMP FavSectnExists = istopic( temp1 )
SETTEMP pers_fam_mode = "personal"
IF FavSectnExists = NN
GOSUB AddToFavorites
ELSE
GOSUB ReplaceFavorites
ENDIF
;xxxxxxxxxxxxxxxxx INPUT PERSONAL ACTIVITIES PAGES xxxxxxxxxxxxxxxxxxxxxxx
DESCRIPTION Little gifts you would enjoy might be a favorite cologne, specific jewelry, or accessory items such as a belt or scarf. You could suggest gift certificates. Mention the theater you frequent, a restaurant you like, or stores you like to shop.\n\nProvide your apparel sizes and preferences for those who may wish to buy clothing items. If you especially like plaids, or cotton items, mention it here.
ARGUMENT &Little things I enjoy:@little_gifts
ARGUMENT &Apparel preferences and sizes:@prefs_sizes
DESCRIPTION Along with your preferences, it helps a gift-buyer to know your dislikes too! If you just don't like stripes, or pink, or polka dots, this is the place to mention it.\n\nThen list gifts you would most like to receive that aren't little things? Perhaps grandad would buy you that new red convertible if he knew how much you wanted it! Or maybe you can target something extraordinary like a new TV set or stereo!
ARGUMENT &Dislikes:@dislikes
ARGUMENT Dream &gifts:@dream_gifts
SET eval( dislikesVar ) = dislikes
SET eval( dreamgiftsVar ) = dream_gifts
SETTEMP sectionCompleted = 1
;xxxxxxxxxxxxxxxxxxxxx INPUT PERSONAL PHOTO COLLECTION xxxxxxxxxxxxxxxxxxx
;xxxxxxxxxxxxxxxxxxxx INPUT PERSONAL STYLING CHOICES xxxxxxxxxxxxxxxxxxxx
[GetPgStyle]
SETTEMP memTypVar = "memberType",nSel
SETTEMP type = eval( memTypVar )
SETTEMP memberGenderVar = "memberGender",nSel
SETTEMP gender = eval( memberGenderVar )
SETTEMP memPgStVar = "memberStyling",nSel
SETTEMP pers_template = eval( memPgStVar )
SETTEMP field5 = pers_template ;for inp
BACKSTOP ;these choice pages in membertx.dat
IF type = "Adult"
IF gender = "male"
GOSUB ManPage
ELSE
GOSUB WomanPage
ENDIF
ELSE
IF type = "Child"
IF gender = "male"
GOSUB BoyPage
ELSE
GOSUB GirlPage
ENDIF
ELSE
PAGE
WIZPIC wizpics\wizpet.gif
NAME field5
TYPE RADIOBUTTONS
DESCRIPTION Your pet's home page can be decorated according to the type of animal he or she is. Please select one of the choices below for a specific decor for your pet's page.
SETTEMP pers_pix1 = "Do you have an electronic picture of "
SETTEMP pers_pix2 = "? What we need is a file that contains the electronic image of "
SETTEMP pers_pix2a = " (such as you would get from a scanner, a digital camera, or a picture disk)."
SETTEMP pers_pix3 = "\nSelect a file that contains a photograph to use on the personal Web page. Press the browse button to search for a picture. You can easily change the picture later."
SETTEMP facts1 = "Details about "
SETTEMP pet_n1 = "Do you have a picture of "
SETTEMP pet_n2 = "? If you do, select one to use now. If you don't have one available now (in digital format), you can add it later."
SETTEMP templ1 = "Now pick a page style for "
SETTEMP templ2 = "'s personal page on the Family Web Site. This styling determines how the page is decorated."
SETTEMP name = ""
SETTEMP type = "Adult"
SETTEMP photo = ""
SETTEMP interests = ""
SETTEMP favs = ""
SETTEMP hopes = ""
SETTEMP mod_caption = "In order to make changes to a family member's page, you must pick one to modify.\n\nChoose a family member from the list below."
SETTEMP fill_caption = "The next step is to fill out the pages for each of the family members. You can do this in any order you want. Pick one of the family members from the list below."